package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 27 Jun, 2012
 * Time: 7:07:05 PM
 */
@Entity
@PrimaryKeyJoinColumn(name="ID")
public class FeedNotes extends Notes{

    @ManyToOne(optional = false)
    private Feed feed;

    public Feed getFeed() {
        return feed;
    }

    public void setFeed(Feed feed) {
        this.feed = feed;
    }
}
